package visualcbir;

import java.awt.Container;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import org.jdesktop.application.Action;

public class DlgAboutBox extends JDialog {
    
    public DlgAboutBox() {
        super();
        initComponents();
    }
    private void initComponents() {
        /*JButton btnClose = new JButton("Close");
        JLabel lblVisualCBIR =new JLabel("Visual CBIR");
        JLabel lblProject =new JLabel("Project financed by CNPq and FAPESP");
        JLabel lblName =new JLabel("Sheila Maricela Pinto Cáceres");
        JLabel lblReviewer =new JLabel("Oriented by Ricardo da Silva Torres");

        this.add(btnClose);
        this.add(lblVisualCBIR);
        this.add(lblProject);
        this.add(lblName);
        this.add(lblReviewer);
         getRootPane().setDefaultButton(btnClose);
         */
        JOptionPane.showMessageDialog((Container)this.getParent(),
                "Visual CBIR.\n"
                +"Project financed by CNPq and FAPESP\n"
    +"Sheila Maricela Pinto Cáceres\n"
    +"Oriented by Ricardo da Silva Torres");

        setDefaultCloseOperation(EXIT_ON_CLOSE);//DISPOSE_ON_CLOSE
        
    }
    @Action public void closeAboutBox() {
        dispose();
    }
}